From: Antoine Lassagne Date: Fri, 10 Oct 2025 12:55:40 +0000 (+0200) Subject: status/network: Update indicator icon on connectivity changes X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~66^2^2~45 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ef52dbfee20f3da50a80ff3a6966daeee551160f;p=gnome-shell.git status/network: Update indicator icon on connectivity changes When there is no active main connection or it uses a device type we do not handle, the indicator icon and its visibility depend on the global connectivity. However we currently don't update the icon on connectivity changes, with the result that we sometimes show the fallback connection icon when the network is in fact disconnected. To fix this, update the icon whenever the (global) connectivity changes. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7357 Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/8549 Part-of: (cherry picked from commit a999193c06ad91a40d9eae5f01c2ccaf9455c227) --- diff --git a/js/ui/status/network.js b/js/ui/status/network.js index d4903a11c..6cf195d41 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -2199,7 +2199,6 @@ class Indicator extends SystemIndicator { this._mainConnectionStateChanged(); } - this._updateIcon(); this._syncConnectivity(); } @@ -2209,6 +2208,7 @@ class Indicator extends SystemIndicator { } _syncConnectivity() { + this._updateIcon(); if (this._mainConnection == null || this._mainConnection.state !== NM.ActiveConnectionState.ACTIVATED) { this._portalHandler.clear();